package com.huike.mapper;

import com.huike.clues.domain.Business;
import com.huike.clues.dto.BusinessDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {

    List<Business> selectBusinessList(BusinessDTO dto);
    @Select("select * from huike.tb_business where id = #{id}")
    Business selectById(Long id);

    List<Business> selectBusinessPoolList(BusinessDTO dto);

    int BusinessGain(List<Integer> ids);

    int insert(Business business);
}
